//
//  SecondViewController.m
//  ZgcBank
//
//  Created by niuyangyang on 2023/5/11.
//

#import "SecondViewController.h"
#import "Masonry.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
  
  UILabel *label = [[UILabel alloc] init];
  label.text = self.msg;
  label.font = [UIFont systemFontOfSize:24];
  label.textColor = [UIColor blackColor];
  label.numberOfLines = 0;
  label.textAlignment = NSTextAlignmentCenter;
  
  [self.view addSubview:label];
  [label mas_makeConstraints:^(MASConstraintMaker *make) {
    make.center.equalTo(self.view);
    make.width.equalTo(@(280));
    make.height.equalTo(@(400));
  }];
  
  self.view.backgroundColor = [UIColor whiteColor];
}

- (void)viewWillAppear:(BOOL)animated {
  [super viewWillAppear:animated];
  
  self.navigationController.navigationBar.hidden = NO;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
